<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
    <link rel="shortcut icon" href="http://7xvdle.com1.z0.glb.clouddn.com/favicon.png"/>
    <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/default.min.css">
    <title>2017-五一规划</title>
</head>
<body>
<pre>
    <code class="Java">

import java.util.Calendar;

/**
 * 五一规划策略:
 * 行李:少许内衣+娱乐设备(手机,自拍杆等等)+创可贴
 * 天气情况:4.29晴天,4.30晴转多云,5.1阵雨
 *
 * Day_(1)上海南->杭州站->龙翔桥->西湖景区->萧山区(晚餐-亲戚家里住宿)
 * Day_(2)萧山区(早餐)->宾馆(西湖附近)->灵隐寺->午餐->三潭印月->晚餐->住宿(西湖附近)
 * Day_(3)宾馆->杭州南->上海南站
 *
 * 一路开销预计:1000-2000
 * 人员:两人
 *
 * Created by simon on 4/27/17.
 */
public class WuYiVacation {

    public static void main(String[] args) {
        back:
        for (int time = 429; true; ) {//时刻准备着
            Calendar calendar = Calendar.getInstance();
            int month = calendar.get(Calendar.MONTH);
            int day = calendar.get(Calendar.DAY_OF_MONTH);
            if (month == 4 && day == 29) {
                time++;
                arriveToHangZhouTrainStation();
                arriveToLongXiangQiaoSubwayStation();
                arriveToXiHuScenery();
            }
            if (month == 4 && day == 30) {
                time++;
                LingYinSiHuScenery();

            }
            if (month == 5 && day == 1) {
                time++;
            }
            if (time == 431) {
                backShangHaiTrainStation();
                break back;
            }
        }
        System.out.println("五一假期over....");
    }

    private static void arriveToHangZhouTrainStation() {//杭州-火车站
        System.out.println("初到杭州-火车站");
    }

    private static void arriveToLongXiangQiaoSubwayStation() {//龙翔桥-地铁站
        System.out.println("初到杭州龙翔桥-地铁站");
    }

    private static void arriveToXiHuScenery() {//西湖-景区
        String scenery = "xihu";
        range.range(scenery);
    }

    private static void LingYinSiHuScenery() {//灵隐寺-景区
        String scenery = "scenery";
        range.range(scenery);
    }

    private static void backShangHaiTrainStation() {//上海-火车站
        System.out.println("返回上海火车站");
    }

    private static class range {
        private static void range(String scenery) {
            switch (scenery) {
                case "xihu":
                    System.out.println("游船");
                    System.out.println("雷峰塔");
                    System.out.println("白堤");
                    System.out.println("孤山");
                    System.out.println("曲院风荷");
                    System.out.println("苏堤");
                    break;
                case "lingyinsi":
                    System.out.println("灵隐寺");
                    System.out.println("三潭印月");
                    break;
                default:
                    break;
            }
        }
    }
}

</code></pre>
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>